import request from '@/config/axios'

export interface ActivityVerificateVO {
  id: number
  no: string
  userId: number
  verificateCode: string
  activeId: number
  packageId: number
  activeName: string
  verificateMerchant: number
  verificateUser: number
  verificateProduct: number
  verificatePhr: string
  verificateMoney: string
  packageDetail: string
  verificateTime: string
  status: number
}

// 查询相亲活动信息列表
export const getActivityVerificatePage = async (params) => {
  return await request.get({ url: `/activity/enroll-verificate/page`, params })
}

// 查询相亲活动信息详情
export const getActivityVerificate = async (id: number) => {
  return await request.get({ url: `/activity/enroll-verificate/get?id=` + id })
}

// 新增相亲活动信息
export const createActivityVerificate = async (data: ActivityVerificateVO) => {
  return await request.post({ url: `/activity/enroll-verificate/create`, data })
}

// 修改相亲活动信息
export const updateActivityVerificate = async (data: ActivityVerificateVO) => {
  return await request.put({ url: `/activity/enroll-verificate/update`, data })
}

// 删除相亲活动信息
export const deleteActivityVerificate = async (id: number) => {
  return await request.delete({ url: `/activity/enroll-verificate/delete?id=` + id })
}

// 导出相亲活动信息 Excel
export const exportActivityVerificate = async (params) => {
  return await request.download({ url: `/activity/enroll-verificate/export-excel`, params })
}
